recorder: Show details for blend nodes
authorMatthias Clasen <mclasen@redhat.com>
Thu, 28 Sep 2017 23:40:03 +0000 (19:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 28 Sep 2017 23:40:03 +0000 (19:40 -0400)
gtk/inspector/recorder.c

index d8f7bcac64e64c351c7164f94f35dc57e27fabdb..19786a99fd7dcd01cbc7eeb9cdd8965c3cadaf87 100644 (file)
@@ -409,6 +409,22 @@ populate_render_node_properties (GtkListStore  *store,
       }
       break;
 
+    case GSK_BLEND_NODE:
+      {
+        GskBlendMode mode = gsk_blend_node_get_blend_mode (node);
+        const char *text;
+
+        text = g_enum_to_string (GSK_TYPE_BLEND_MODE, mode);
+        gtk_list_store_insert_with_values (store, NULL, -1,
+                                           0, "Blendmode",
+                                           1, text,
+                                           2, FALSE,
+                                           3, NULL,
+                                           -1);
+        g_free (text);
+      }
+      break;
+
     default: ;
     }
 }